/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package net.wofly.sale.commodity.repository;

import net.wofly.sale.commodity.domain.CommodityDetailImg;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CommodityDetailImgRepository
		extends PagingAndSortingRepository<CommodityDetailImg, String>, JpaSpecificationExecutor<CommodityDetailImg> {

	List<CommodityDetailImg> findByCommodityIDAndImgType(String brandID, Integer imgType);
	
	List<CommodityDetailImg> findByCommodityID(String commodityID);
	
	
	void deleteByCommodityID(String commodityID);
	
}